package com.qf.bigwork.fragment;


import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.qf.bigwork.R;


/**
 * A simple {@link Fragment} subclass.
 * 我的
 */
public class MyselfFragment extends Fragment {


    private Toolbar toolbar;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.fragment_myself,null);
        initView(view);
        toolbarView();
        return view;
    }

    private void initView(View view) {
        toolbar = (Toolbar)view.findViewById(R.id.myself_frag_tb);
    }
    private void toolbarView() {
        toolbar.setTitle("我的");
        toolbar.setBackgroundColor(Color.RED);
    }

}
